package com.leyou.item.service;

import com.leyou.common.utils.PageResult;
import com.leyou.item.bo.SpuBo;
import com.leyou.item.pojo.Sku;
import com.leyou.item.pojo.Spu;
import com.leyou.item.pojo.SpuDetail;

import java.util.List;


/**
 * Author: Saka
 * Date: 2019/1/20
 * Time: 19:00
 */
public interface GoodsService {
    PageResult<SpuBo> querySpuByPageAndSort(String key, Integer page, Integer rows, Boolean saleable,Boolean valid);

    void saveGoods(SpuBo spuBo);

    SpuDetail querySpuDetailById(Long id);

    List<Sku> querySkuBySpuId(Long id);

    void updateGoods(SpuBo spuBo);

    void downShelves(Long id);

    void onShelves(Long id);

    void deleteShelves(Long id);
}
